// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

$font-path: '/media/protocol/fonts';
$image-path: '/media/protocol/img';

@import '~@mozilla-protocol/core/protocol/css/includes/lib';

header {
    background-color: $color-black;
    text-align: center;

    .c-hero-banner {
        min-height: 250px;
        background-color: $color-black;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        h1 {
            @include text-title-lg;
            color: $color-white;
            font-weight: normal;

            span {
                background: $color-green-70;
            }
        }

        @media #{$mq-md} {
            background-image: url('/media/img/mozorg/impact/arrow.png');
            background-size: 900px;
            background-position: center center;
            background-repeat: no-repeat;
            min-height: 450px;

            h1 {
                @include font-size(90px);

                span {
                    display: inline-block;
                    margin-bottom: $spacing-md;
                    padding: 0 $spacing-md;

                    &:nth-of-type(1) {
                        margin-left: -160px;
                    }

                    &:nth-of-type(3) {
                        margin-left: 90px;
                    }
                }
            }
        }

        @media #{$mq-lg} {
            @include background-size(1300px, auto);
        }
    }

   .c-subheader {
        padding-bottom: $spacing-xl;
        padding-top: 0;

        h2 {
            @include text-title-xs;
            color: $color-white;
            font-family: var(--body-font-family);
            font-weight: 600;
        }
    }
}

.c-foundation {
    padding-bottom: 0;
}

.c-cards {
    margin: auto;

    h3 {
        text-align: center;
    }

    .mzp-l-card-quarter {
        @media #{$mq-md} {
            display: flex;
            justify-content: center;
        }

    }
}

.c-past-reports {
    padding-top: 0;

    h3 {
        text-align: center;
    }
}


.c-past-reports-table.mzp-u-data-table {
    margin: 0 auto;
    margin-top: $spacing-2xl;
    table-layout: auto;

    th {
        padding: 0 0 $spacing-xs;
    }

    td {
        padding: $spacing-md 0;
        border-top: 2px solid #F4F4F4;

        &:first-of-type {
            padding-right: $spacing-2xl;
        }
    }

    a {
        font-weight: 600;
        margin: $spacing-md 0;
        text-decoration: none;

        &:hover,
        &:active {
            text-decoration: underline;
        }
    }

    @media #{$mq-md} {
        width: 790px;
        max-width: 100%;
    }
}
